import axios from 'axios'

export default{
	//最新巡河记录
	getLatestPatroRecord(data){
		return axios.get('/dailyPatrol/getNewList',{params:data})
	},///water/getCount

	// 巡河统计
	getPatrolData(year){
		var year= Object.assign({year :''},year) 
		  return axios.get('/comprehensive/countPatrol', {params:year})
	},
	// 雨情
	waterRegimen(data){
		var data= Object.assign({current :'',size:''},data) 
            return axios.get('/warning/rain', {params:data})
	},
	//水质统计数据
	getWaterQualityData(data){
		return axios.post('/water/getCount',data)
	},
 
	getWaterRaindata(data){//水情、雨情
		return axios.get('river/getListByName?current='+data.current+'&size='+data.size+'&name='+data.name+'')
	},
	getMsgNumber(){//获取消息条数
		return axios.get('news/count?userId=34382464831e472381595b8bed5d5f89')
	},
	newsTaskNoRead(){//未读任务
		return axios.get('news/taskNoRead?userId=34382464831e472381595b8bed5d5f89&current=1&size=10')
	},
	newsInformationNoRead(data){//未读公告
		return axios.get('news/informationNoRead?userId=34382464831e472381595b8bed5d5f89&current=1&size=20&infoTypeId='+data+'')
	},
}